import config from "@/utils/config"
import http from "@/utils/request"
export default {
	get: {
		url: `user/get`,
		name: "我的信息",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	login: {
		url: `user/login`,
		name: "用户登录",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	logout: {
		url: `user/logout`,
		name: "退出登录",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	pwd: {
		url: `user/change_pwd`,
		name: "修改密码",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	edit: {
		url: `user/edit`,
		name: "修改信息",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	sendcode: {
		url: `user/sendcode`,
		name: "发送验证",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	changephone: {
		url: `user/changephone`,
		name: "发送验证",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	findpwd: {
		url: `user/find_pwd`,
		name: "找回密码",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	sms: {
		url: `user/sms`,
		name: "短信",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
}
